import { BlogCategoryVO } from '@/api/category/types';

/**
 * 作者信息
 */
export interface AuthorVO {
  authorDetail: AuthorDetailVO;
  growthList: UserGrowthVO[];
  blogCategoryList: BlogCategoryVO[];
  isAttention: boolean;
  isFollower: boolean;
}

/**
 * 作者详细对象
 */
export interface AuthorDetailVO {
  userId: number | string;
  username: string;
  nickname: string;
  description: string;
  avatar: string;
  follower: number;
  attention: number;
  articleNum: number;
  isDeleted?: number;
  createTime?: Date;
  createBy?: number;
  updateTime?: Date;
  updateBy?: number;
}

/**
 * 作者详细对象
 */
export interface UserGrowthVO {
  name?: string;
  icon?: string;
  color?: number;
  sortOrder?: number;
}
